<?php
header("Content-type:text/html;charset=utf-8");
if($_POST){
	require_once('../config.php');
	  $id=$_POST['id'];
	  if($con->query("update picture set is_open = 0 where id=$id")){
	  	$array=array("1");
	  	echo json_encode($array);
	  }
}

?>